package org.extplus.test.shared;

import java.util.ArrayList;
import java.util.List;

public class SampleData {

    public List<Company> companys;

    public SampleData() {
        if (companys == null) {
            companys = new ArrayList<Company>();
            companys.add(new Company("3m Co", 71.72, 0.02, 0.03));
            companys.add(new Company("Alcoa Inc", 29.01, 0.42, 1.47));
            companys.add(new Company("Altria Group Inc", 83.81, 0.28, 0.34));
            companys.add(new Company("American Express Company", 52.55, 0.01, 0.02));
            companys.add(new Company("American International Group, Inc.", 64.13, 0.31, 0.49));
            companys.add(new Company("AT&T Inc.", 31.61, -0.48, -1.54));
            companys.add(new Company("Boeing Co.", 75.43, 0.53, 0.71));
            companys.add(new Company("Caterpillar Inc.", 67.27, 0.92, 1.39));
            companys.add(new Company("Citigroup, Inc.", 49.37, 0.02, 0.04));
            companys.add(new Company("E.I. du Pont de Nemours and Company", 40.48, 0.51, 1.28));
            companys.add(new Company("Exxon Mobil Corp", 68.1, -0.43, -0.64));
            companys.add(new Company("General Electric Company", 34.14, -0.08, -0.23));
            companys.add(new Company("General Motors Corporation", 30.27, 1.09, 3.74));
            companys.add(new Company("Hewlett-Packard Co.", 36.53, -0.03, -0.08));
            companys.add(new Company("Honeywell Intl Inc", 38.77, 0.05, 0.13));
            companys.add(new Company("Intel Corporation", 19.88, 0.31, 1.58));
            companys.add(new Company("International Business Machines", 81.41, 0.44, 0.54));
            companys.add(new Company("Johnson & Johnson", 64.72, 0.06, 0.09));
            companys.add(new Company("JP Morgan & Chase & Co", 45.73, 0.07, 0.15));
            companys.add(new Company("McDonald\"s Corporation", 36.76, 0.86, 2.40));
            companys.add(new Company("Merck & Co., Inc.", 40.96, 0.41, 1.01));
            companys.add(new Company("Microsoft Corporation", 25.84, 0.14, 0.54));
            companys.add(new Company("Pfizer Inc", 27.96, 0.4, 1.45));
            companys.add(new Company("The Coca-Cola Company", 45.07, 0.26, 0.58));
            companys.add(new Company("The Home Depot, Inc.", 34.64, 0.35, 1.02));
            companys.add(new Company("The Procter & Gamble Company", 61.91, 0.01, 0.02));
            companys.add(new Company("United Technologies Corporation", 63.26, 0.55, 0.88));
            companys.add(new Company("Verizon Communications", 35.57, 0.39, 1.11));
            companys.add(new Company("Wal-Mart Stores, Inc.", 45.45, 0.73, 1.63));
        }
    }

    public class Company {
        public String company;

        public double price;

        public double change;

        public double pctChange;

        public Company(String company, double price, double change, double pctChange) {
            this.company = company;
            this.price = price;
            this.change = change;
            this.pctChange = pctChange;
        }

        public String getCompany() {
            return company;
        }

        public void setCompany(String company) {
            this.company = company;
        }

        public double getPrice() {
            return price;
        }

        public void setPrice(double price) {
            this.price = price;
        }

        public double getChange() {
            return change;
        }

        public void setChange(double change) {
            this.change = change;
        }

        public double getPctChange() {
            return pctChange;
        }

        public void setPctChange(double pctChange) {
            this.pctChange = pctChange;
        }
    }

}
